
// 切换修炼技能  {"bb":"攻击控制力","人物":"攻击修炼"}

// @ts-ignore
export async function execute(client_id,message_json) {
    let login_characters = G.Characters.get_current_login_characters(client_id);

    if (message_json["bb"] !== undefined) {
        if (Object.keys(login_characters["bb修炼"]).includes(message_json["bb"])) {
            login_characters["bb修炼"]["当前"] = message_json["bb"];
        } else {
            ClientUtils.send_basic_prompt(client_id, `#R你似乎没有这种修炼技能 [${message_json["bb"]}]`);
        }
    }

    if (message_json["人物"] !== undefined) {
        if (Object.keys(login_characters["修炼"]).includes(message_json["人物"])) {
            login_characters["修炼"]["当前"] = message_json["人物"];
        } else {
            ClientUtils.send_basic_prompt(client_id, `#R你似乎没有这种修炼技能 [${message_json["人物"]}]`);
        }
    }

    //通知客户端更新角色面板数据
    G.Characters.refrush_characters_ui_data(login_characters);
}
